package pages;

import org.openqa.selenium.WebDriver;


class BasePage {

    protected String URL="http://rozetka.com.ua/";  //="rozetka"
    protected WebDriver driver;


    public BasePage(WebDriver driver){
        this.driver=driver;
    }

    public void open(){
        driver.get(URL);
    }

    public  boolean isOpened(){

        return driver.getCurrentUrl().equals(URL) ;
    }




}
